function getQ() {
        var url=window.location.href
        let search = url.substring(url.lastIndexOf('?') + 1);
        let query = {};
        let reg = /([^?&=]+)=([^?&=]*)/g;
        search.replace(reg, (rs, $1, $2) => {
                let name = decodeURIComponent($1);
                let val = decodeURIComponent($2);
                val = String(val);
                query[name] = val;
                return rs;
        });
        return query;
}
var qrcode = new QRCode("code", {
    text: "http://www.cynfsy.com/cheungssh/static//html/pay.html?p="+getQ().p,
    width: 200,
    height: 200,
    colorDark : "#000000",
    colorLight : "#ffffff",
    correctLevel : QRCode.CorrectLevel.H
});
$("#name").text(getQ().chinese_name+" 加油员")
$("#code2").text("邀请码: "+getQ().oiler_code)
document.getElementById("print").onclick=function(){
	$(this).hide()
	window.print()
}
